import request from '@/utils/request'

// 查询质检员列表
export function listQualityMan(query) {
  return request({
    url: '/quality/qualityMan/list',
    method: 'get',
    params: query
  })
}

// 新增质检员
export function addQualityMan(data) {
  return request({
    url: '/quality/qualityMan',
    method: 'post',
    data: data
  })
}
// 根据id查询质检员详细
export function getQualityMan(id) {
  return request({
    url: '/quality/qualityMan/' + id,
    method: 'get'
  })
}
// 修改质检员
export function updateQualityMan(data) {
  return request({
    url: '/quality/qualityMan',
    method: 'put',
    data: data
  })
}

// 删除质检员
export function delQualityMan(id) {
  return request({
    url: '/quality/qualityMan/' + id,
    method: 'delete'
  })
}


